<!DOCTYPE html>
<html>
    <head>
        <title>SuMinify_PHP-1.5 Help</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style type="text/css">
            body {font-size: 12px; color:#333; line-height: 18px;}
            h1 small { display: block; font-size:12px; color:#999; font-weight: normal; margin-top:10px;}
        </style>
    </head>
    <body>
        <h1>SuMinify 1.5 帮助文档<small>version: 1.0 &lt;2015-6-18&gt;<br />author: SoChishun &lt;14507247#qq.com&gt;  </small></h1>
        演示效果请修改Example/SuMinify_1_5.php中的配置路径后运行演示， <a href="Example/SuMinify_1_5.php" target="_blank">[立即演示]</a><br />
        如有疑问,欢迎致信14507247#qq.com交流(#改成@)
        <div style="margin:10px 0px;">            
            <strong>使用方法：</strong><br />
            1. 将SuMinify_1_5.php复制到您的项目中任意目录.<br />
            2. 修改配置文件为适合您需要的规则.<br />
            3. 运行SuMinify_1_5.php，生成成功后，就可以查看您的成果了~<br />
        </div>
        <strong>配置文件规则：</strong>
        <pre>
        array(
            'js' => array(
                'in-place-minify' => array(// 就地压缩js
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\superfish\superfish.js', // 就地生成superfish.min.js文件
                    array('path' => 'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\Pages\*', 'skips' => array('F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\Pages\skip-me1.js', 'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\Pages\skip-me2.js')), // 整个目录就地压缩,跳过其中2个文件的压缩
                ),
                'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\min\jquery.easyui.min.js' => array(
                    array('path' => 'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\easyui\jquery.easyui.min.js', 'minify' => false), // 不用压缩,直接合并
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\easyui\locale\easyui-lang-zh_CN.js', // 压缩后合并
                ),
                'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\min\pages.min.js' => array(
                    array('path' => 'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\Pages\*'), // 将目录中所有文件压缩后合并
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Javascript\js-prototype-extension.js', // 压缩后合并
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Plugin\jquery-audioplayer-1.0\jquery-audioPlayer-1.0.js', // 压缩后合并
                )
            ),
            'css' => array(
                'in-place-minify' => array(// 就地压缩css
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\Pages\*', // 整个目录就地压缩
                ),
                'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\jeasyui\Default\easyui.min.css' => array(
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\jeasyui\Default\easyui.css', // 压缩后合并
                    array('path' => 'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\jeasyui\icon.css', 'replaces' => array("'icons/" => "'../Icons/")), // 压缩后替换内容,然后合并
                ),
                'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\superfish\superfish.min.css' => array(
                    'F:\OpenOpus\SuMinify_PHP_1_5\Example\Resfile\Css\superfish\superfish.css', // 就地压缩
                ),
            )
        );
        </pre>
        <strong>运行后效果图:</strong><br />
        <img src="Images/image1.png" alt="运行后效果图" />
    </body>
</html>
